﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using TowerDefence.Entities.States;

namespace TowerDefence.Entities.Factories
{
    public class ProjectileFactory
    {
        /// <summary>
        /// Creates a test bullet - has no ability to render
        /// </summary>
        /// <returns>A bullet entity</returns>
        public Entity CreateTestBullet(Vector2 _position, float _size)
        {
            var formStates = new StateContainer();
            formStates.AddState(new AliveState());
            formStates.AddState(new CollisionCircle { Radius = _size, Position = _position });
            var form = new TestForm { 
                Position = _position, 
                Orientation = Vector2.UnitX, 
                States = formStates };

            return new Entity { Form = form };
        }
    }
}
